﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Add.aspx.cs" Inherits="socialnexus.admin.Users.Friends.Add"
MasterPageFile="~/masters/Admin.Master" %>


<asp:Content ID="Content1" ContentPlaceHolderID="body" runat="server">

<h1>Add a Friend for</h1>

<div class="badge">
    <asp:Image runat="server" ID="imgPictureURL" />
    <asp:Label runat="server" ID="lblFirstName"  />
    <asp:Label runat="server" ID="lblLastName" />
</div>

<div class="clear"></div>

<asp:ScriptManager runat="server" />
<asp:UpdatePanel ID="upAddFriend" runat="server">
    <ContentTemplate>
        <p>
            <asp:TextBox ID="txtUserName" runat="server" />
            <asp:Button ID="btnSearch" runat="server" OnClick="btnSearch_Click" Text="Search" />
        </p>
        
        <table class="genericTable clear" cellpadding="0" cellspacing="1" border="0">
        <asp:Repeater ID="rptrUsers" runat="server">
            <HeaderTemplate>
                <tr>
                    <th>&nbsp;</th>
                    <th>First Name</th>
                    <th>Last Name</th>
                    <th>Active</th>
                    <th class="actions">Actions</th>
                </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                <td><asp:Image runat="server" ID="PictureURL" AlternateText="Picture"
                    ImageUrl='<%# DataBinder.Eval(Container.DataItem, "PictureURL").ToString().Trim() %>' /></td>
                <td><asp:Label runat="server" ID="FirstName" 
                    Text='<%# DataBinder.Eval(Container.DataItem, "FirstName") %>' /></td>
                <td><asp:Label runat="server" ID="LastName" 
                    Text='<%# DataBinder.Eval(Container.DataItem, "LastName") %>' /></td>
                <td><%# DataBinder.Eval(Container.DataItem, "IsActive").ToString() %></td>
                <td>
                    <asp:HiddenField ID="hfUserId" runat="server" 
                        Value='<%# DataBinder.Eval(Container.DataItem, "SiteUserId") %>' />
                    <asp:LinkButton ID="lbDoAdd" Text="Add" runat="server" OnClick="lbDoAdd_Click" />
                </td>
                </tr>
            </ItemTemplate>
        </asp:Repeater>
        </table>
        
    </ContentTemplate>
</asp:UpdatePanel>
</asp:Content>